package org.hospital.entity;
// default package

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * MedicalRecord entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="medicalrecord"
    ,catalog="hospital"
)

public class MedicalRecord  implements java.io.Serializable {


    // Fields    

     private Integer medicalRecordId;
     private Integer clientId;
     private Integer employeeId;
     private Integer clinicId;
     private Integer departmentId;
     private String diseaseName;
     private Timestamp datetime;

    // Constructors
    /** default constructor */
    public MedicalRecord() {
    }
    
    /** full constructor */
    public MedicalRecord(Integer clientId, Integer employeeId, Integer clinicId, Integer departmentId, String diseaseName, Timestamp datetime) {
        this.clientId = clientId;
        this.employeeId = employeeId;
        this.clinicId = clinicId;
        this.departmentId = departmentId;
        this.diseaseName = diseaseName;
        this.datetime = datetime;
    }

    // Property accessors
    @Id @GeneratedValue
    @Column(name="medicalRecordId", unique=true, nullable=false)
    public Integer getMedicalRecordId() {
        return this.medicalRecordId;
    }
    
    public void setMedicalRecordId(Integer medicalRecordId) {
        this.medicalRecordId = medicalRecordId;
    }
    
    @Column(name="clientId", nullable=false)
    public Integer getClientId() {
        return this.clientId;
    }
    
    public void setClientId(Integer clientId) {
        this.clientId = clientId;
    }
    
    @Column(name="employeeId", nullable=false)
    public Integer getEmployeeId() {
        return this.employeeId;
    }
    
    public void setEmployeeId(Integer employeeId) {
        this.employeeId = employeeId;
    }
    
    @Column(name="clinicId", nullable=false)
    public Integer getClinicId() {
        return this.clinicId;
    }
    
    public void setClinicId(Integer clinicId) {
        this.clinicId = clinicId;
    }
    
    @Column(name="departmentId", nullable=false)
    public Integer getDepartmentId() {
        return this.departmentId;
    }
    
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }
    
    @Column(name="diseaseName", nullable=false, length=500)
    public String getDiseaseName() {
        return this.diseaseName;
    }
    
    public void setDiseaseName(String diseaseName) {
        this.diseaseName = diseaseName;
    }
    
    @Column(name="datetime", nullable=false, length=19)
    public Timestamp getDatetime() {
        return this.datetime;
    }
    
    public void setDatetime(Timestamp datetime) {
        this.datetime = datetime;
    }
   








}